﻿using MyMusicPlay._4._0.Operate;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;

namespace MyMusicPlay._4._0
{
    public partial class MainWindow : Window
    {
        /// <summary>
        /// 上一首
        /// </summary>
        public void PreviousBut_Click(object sender, RoutedEventArgs e)
        {
            MusicPlaying.LastMusicPlaying();
        }

        /// <summary>
        /// 下一首
        /// </summary>
        public void NextBut_Click(object sender, RoutedEventArgs e)
        {
            MusicPlaying.NextMusicPlaying();
        }

        /// <summary>
        /// 播放/暂停
        /// </summary>
        public void PlayingBut_Click(object sender, RoutedEventArgs e)
        {
            PlayApplication.GetModule<MusicPlaying>().Playing();
        }

        /// <summary>
        /// 播放顺序 点击
        /// </summary>
        private void OrderState_MouseDown(object sender, MouseButtonEventArgs e)
        {
            Media.UpdateOrderState();
        }

        
    }
}
